<template>
  <div @click="$emit('onclick')" :class="['btn', disable ? 'disable' : '', secondary ? 'secondary' : '']">
    {{value}}
  </div>
</template>

<script>
export default {
  name: "btn",
  props: ["value", "disable", "secondary"]
};

</script>

<style lang="scss">
.btn {
  margin: 1rem 1rem 1rem;
  text-align: center;
  line-height: 3rem;
  background: #25b02a;
  color: #fff;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  letter-spacing: 0.2rem;
  transition: all 0.2s;
  &.disable {
    background: #bbb;
    &:active {
      background: #bbb;
    }
  }
  &:active {
    background: #1ba020;
  }
  &.secondary {
    background: #fff;
    border: 1px solid #ccc;
    color: #666;
    &:active {
      background: #efefef;
    }
  }
}
</style>
